package com.util;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class TestMysql {
	public static void main(String[] args) {
		String username = "dong";
		String password = "xiaodong";
		String driver = "com.mysql.jdbc.Driver";
		String url = "jdbc:mysql://localhost/web_pro_vk";
		try {
			Class.forName(driver);
			Connection conn = DriverManager.getConnection(url, username, password);
			System.out.println(conn+"=conn");
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
}
